-- GENERATED SPELL FOR [Foulweald Ursa] --


function spell0_3749(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_3749', 615, 1)
end

function spell1_3749(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3749', 10281, 1)
end

function Sorts_3749(pUnit, Event)
local choix_sorts_3749 = math.random(0, 1)
if choix_sorts_3749 == 0 then
pUnit:RegisterEvent('spell0_3749', 1, 1)
end
if choix_sorts_3749 == 1 then
pUnit:RegisterEvent('spell1_3749', 1, 1)
end
end

function mob3749_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3749', math.random(1500, 3000), 1)
end

function mob3749_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3749_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3749_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3749, 1, 'mob3749_Action')
RegisterUnitEvent(3749, 2, 'mob3749_Leave')
RegisterUnitEvent(3749, 3, 'mob3749_Kill')
RegisterUnitEvent(3749, 4, 'mob3749_Die')
